{{!connect "theme/service/panel.css"}}
{{!connect "theme/decoration/common.css"}}

<div class="service-panel">
	<ul class="list-">
		<li class="installation-"><a href="{{/}}">{{SITE.project_link_title |or SITE.project_title}}</a></li>
		{{?rh.use_search}}
		<li class="search-"><form action="{{/}}{{?community.url}}{{community.url}}/{{/?}}{{?current_tdi.url}}{{current_tdi.url}}/{{/?}}search" method="get" id="top_search_form" class="form-">
			<input type="hidden" name="lpage" value="1" />
			<input type="hidden" name="search_options" value="{{search_options}}">
			<div class="desc-">Поиск</div>
			{{?community.url}}
			<select class="zone-" id="search_zone" style="display: none;" onchange="jQuery('#top_search_form').get(0).action = this.value;">
				<option value="{{/}}{{community.url}}/search">в этом сообществе</option>
				<option value="{{/}}search"{{?!community.url}} selected="selected"{{/?}}>по всему узлу</option>
			</select>
			{{/?}}
			<input type="text" name="sstring" value="{{sstring_encode}}" class="query-" />
			<input type="image" src="{{!static type='images' 'button-search.gif'}}" alt="Искать!" class="submit-" />
		</form></li>
		{{?user.is_authenticated}}
			<li class="exit-"><a href="{{/}}logout">Выйти</a></li>
			{{?community.url}}
			<li><a href="{{/}}{{community.url}}/members/{{user.oid}}/edit">Изменить профиль</a></li>
			<li class="user-"><a href="{{/}}{{community.url}}/members/{{user.oid}}">{{user.real_name}}</a></li>
			{{?:}}
			<li><a href="{{/}}members/{{user.oid}}/edit">Изменить профиль</a></li>
			{{/?}}
		{{?:}}
			<li class="register-"><a href="{{/}}registration">Зарегистрироваться</a></li>
			<li class="enter-"><a href="{{/}}{{?community.url}}{{community.url}}/{{/?}}login" onclick="$('#popup-bg-auth').toggleClass('dn');$('#popup-body-auth').toggleClass('dn');return false;">Войти</a></li>
		{{/?}}
		{{?community.url}}
		<script>
			jQuery().ready( function() { jQuery("#search_zone").show(); } );
		</script>
		{{/?}}
		{{/?}}
	</ul>
	{{@html/widget/top_menu.html}}
</div>
